﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace classMeeting
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string test = (string)Session["test"];
            if (test != "88830180")
                Response.End();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Session["name"] = "测试";
            Session["schoolId"] = "0000000000";
            Session["college"] = "测试学院";
            Response.Redirect("Student/Home.aspx");
        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            Session["name"] = "测试班级辅导员";
            Session["schoolId"] = "1111111111";
            Session["college"] = "测试学院";
            Response.Redirect("ClassInstructor/Home.aspx");
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Session["name"] = "测试学院负责人";
            Session["schoolId"] = "2222222222";
            Session["college"] = "测试学院";
            Response.Redirect("CollegeInstructor/Home.aspx");
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            Session["name"] = "测试学校管理员";
            Session["schoolId"] = "3333333333";
            Session["college"] = "测试学院";
            Response.Redirect("Admin/Home.aspx");
        }
    }
}